Optional SDL-IMAGE.F
Requires dll-tools
Requires SDL
{ Notes

IMG_LoadTyped_RW supports these formats:
   "TGA"
   "BMP"
   "PNM"
   "XPM"
   "XCF"
   "PCX"
   "GIF"
   "JPG"
   "TIF"
   "LBM"
   "PNG"

Certain functions are intentionally not included since they aren't useful:
  All the individual loading functions
  IMG_InvertAlpha

}

Only Forth Definitions

Library SDL_image

CFunction: IMG_LoadTyped_RW ( src freesrc=0/1 ztype -- surface )
CFunction: IMG_Load_RW ( src freesrc=0/1  -- surface )
CFunction: IMG_Load ( src -- surface )

\ Functions to detect a file type, given a seekable source
CFunction: IMG_isBMP ( SDL_RWops -- flag )
CFunction: IMG_isGIF ( SDL_RWops -- flag )
CFunction: IMG_isJPG ( SDL_RWops -- flag )
CFunction: IMG_isLBM ( SDL_RWops -- flag )
CFunction: IMG_isPCX ( SDL_RWops -- flag )
CFunction: IMG_isPNG ( SDL_RWops -- flag )
CFunction: IMG_isPNM ( SDL_RWops -- flag )
CFunction: IMG_isTIF ( SDL_RWops -- flag )
CFunction: IMG_isXCF ( SDL_RWops -- flag )
CFunction: IMG_isXPM ( SDL_RWops -- flag )
CFunction: IMG_isXV ( SDL_RWops -- flag )

{
/* Individual loading functions */
extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadBMP_RW(SDL_RWops *src);
extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadGIF_RW(SDL_RWops *src);
extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadJPG_RW(SDL_RWops *src);
extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadLBM_RW(SDL_RWops *src);
extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadPCX_RW(SDL_RWops *src);
extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadPNG_RW(SDL_RWops *src);
extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadPNM_RW(SDL_RWops *src);
extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadTGA_RW(SDL_RWops *src);
extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadTIF_RW(SDL_RWops *src);
extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadXCF_RW(SDL_RWops *src);
extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadXPM_RW(SDL_RWops *src);
extern DECLSPEC SDL_Surface * SDLCALL IMG_LoadXV_RW(SDL_RWops *src);
extern DECLSPEC SDL_Surface * SDLCALL IMG_ReadXPMFromArray(char **xpm);
}

\ : IMG_SetError   SDL_SetError ;
\ : IMG_GetError   SDL_GetError ;
